//
// Created by xili on 2024/8/8 8:21.
// Go big or go home.
//
#include <vector>
#include <algorithm>

using namespace std;

class Solution {
public:
    int addedInteger(vector<int> &nums1, vector<int> &nums2) {
        return *max_element(nums2.begin(), nums2.end())
               - *max_element(nums1.begin(), nums1.end());
    }
};